﻿<Window x:Class="WpfImageDuplicates.WebCamWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:y="clr-namespace:WpfImageDuplicates" KeyDown="Window_KeyDown" 
        xmlns:wf="clr-namespace:BrainTechLLC.WebCam;assembly=WebCamLib2"
    Title="WebCamWindow" Height="580" Width="540">
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal">
            <TextBox Text="192.168.0.150" x:Name="txtAddress" MinWidth="120"/>
            <Button x:Name="btnConnect" Click="btnConnect_Click" />
        </StackPanel>
        <Grid>               
        <WindowsFormsHost x:Name="formsHost" Width="640" Height="480">
            <WindowsFormsHost.Child>
                <wf:WebcamVideoControl x:Name="webCamControl" Width="640" Height="480" AlwaysOnTop="True" Load="webCamControl_Load"  />
            </WindowsFormsHost.Child>
        </WindowsFormsHost>
        
    </Grid>
        </StackPanel>
</Window>
